import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$toast = function toast(title, duration = 1500) {
	uni.showToast({
		title: title,
		icon: 'none',
		duration: duration
	})
}
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

Vue.config.productionTip = false
const dsBridge = require("dsbridge");
Vue.prototype.$bridge = dsBridge;
//统一路由
Vue.prototype.commonLinkUrl = function(url){
	uni.navigateTo({
		url:url,
		fail() {
			uni.switchTab({
				url:url
			});
		}
	});
}